﻿using HuiLian.Service.HdlScada.HdlScadaAlarmHistory.Input;
using Newtonsoft.Json;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace HuiLian.Service.HdlScada.HdlScadaAlarmHistory.Input
{
    public class Detail
    {
        /// <summary>
        /// 
        /// </summary>
        public string _id { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public int? created { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public int? changed { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public string type { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public string limit { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public int? time { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public string overtime_seconds { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public string overtime_type { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public string overtime_value { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public int? overtime_switch { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public string notification_id { get; set; }
    }

    public class ExtendInfo
    {
        /// <summary>
        /// 
        /// </summary>
        public string code { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public string processId { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public string processCode { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public string processName { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public string processImportant { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public string processType { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public string processTypename { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public string positionId { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public string positionCode { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public string positionName { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public string positionImportant { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public string positionType { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public string positionTypename { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public string monitorId { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public string monitorCode { get; set; }
        /// <summary>
        /// 奥体中心北门压力计
        /// </summary>
        public string monitorName { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public int? monitorImportant { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public string monitorType { get; set; }
        /// <summary>
        /// 压力计
        /// </summary>
        public string monitorTypename { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public string monitor_battery_type { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public string equiment_bm { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public string monitorSn { get; set; }
    }

    public class Info
    {
        /// <summary>
        /// 
        /// </summary>
        public string group_code { get; set; }
        /// <summary>
        /// 管网压力监测点,重要监测点
        /// </summary>
        public string group_name { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public string dmas { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public string dept_id { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public string dept_sid { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public string dept_code { get; set; }
        /// <summary>
        /// 总调度室
        /// </summary>
        public string dept_name { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public string station_id { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public string station_bm { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public string station_code { get; set; }
        /// <summary>
        /// 奥体中心北门
        /// </summary>
        public string station_name { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public string station_address { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public string station_position { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public string station_gdposition { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public string station_type { get; set; }
        /// <summary>
        /// 管网测压
        /// </summary>
        public string station_typename { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public int station_order { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public string station_py { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public string station_pinyin { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public string station_tag_content { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public string station_distance_datum { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public string station_distance_datum_name { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public string station_caliber { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public string pmm_model { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public string sensor_id { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public string sensor_code { get; set; }
        /// <summary>
        /// 压力
        /// </summary>
        public string sensor_name { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public int sensor_order { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public string sensor_tag { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public int sensor_virtual { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public string sensor_stype { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public string sensor_fz { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public string sensor_sn { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public int sensor_important { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public string sensor_transform { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public string sensor_expression { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public ExtendInfo extendInfo { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public string cate { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public int cate_order { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public string stype { get; set; }
        /// <summary>
        /// 管网压力
        /// </summary>
        public string stypename { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public int precision { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public string unit { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public int type { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public double? max { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public double? min { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public double? interval { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public string dtype { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public string msn { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public string order { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public string pmm_obj_con_info { get; set; }
    }

    public class Rules
    {
        /// <summary>
        /// 
        /// </summary>
        public string alarmid { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public string sencode { get; set; }
        /// <summary>
        /// 压力
        /// </summary>
        public string senname { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public string sentype { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public double? svalue { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public double? cvalue { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public double? rvalue { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public double? cmp { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public double? ovalue { get; set; }
        /// <summary>
        /// 
        /// </summary>
        [JsonProperty(PropertyName = "ref")]
        public double? Ref { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public double? sref { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public string ref_mode { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public int times { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public string type { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public string rid { get; set; }
        /// <summary>
        /// 1-1压力监测点离线报警
        /// </summary>
        public string rnm { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public int dtype { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public int precision { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public string unit { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public string tag { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public Detail detail { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public Info info { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public string msg_content { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public string msg { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public string position { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public string cause { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public int stime { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public int ctime { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public int rtime { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public int level { get; set; }
        /// <summary>
        /// 压力离线10分钟
        /// </summary>
        public string alarm_msg { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public string content { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public string meta { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public string state { get; set; }
    }

    public class Rows
    {
        /// <summary>
        /// 
        /// </summary>
        public string _id { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public string plan { get; set; }
        /// <summary>
        /// 离线报警
        /// </summary>
        public string plan_name { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public string plan_type { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public string plan_process { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public string alarm_direction { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public string atype { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public int stime { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public int ctime { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public int times { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public int need_confirm { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public int confirm { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public string confirmtime { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public string confirmer { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public string confirm_uid { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public string confirm_reason { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public string confirm_pics { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public string remark { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public string delay { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public string deal_aging { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public string deal_dead_line { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public int level { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public string grade { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public int status { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public int rtime { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public List<Rules> rules { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public string anls { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public string acrs { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public string event_uid { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public string event_unm { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public string event_gdbh { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public string event_gdzt { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public string event_gdjg { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public string event_time { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public string event_timeout { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public string gd_plan { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public string gd_id { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public string detail_url { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public string zl_status { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public string notifyWay { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public string badge_dmas { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public string tag_content { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public string tag_user { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public string tag_time { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public string event_report_url { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public bool handle_close { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public string source_id { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public string source { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public string alarm_type { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public double? svalue { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public double? cvalue { get; set; }
            /// <summary>
            /// 
            /// </summary>
            [JsonProperty(PropertyName = "ref")]
            public double? Ref { get; set; }
    /// <summary>
    /// 
    /// </summary>
    public double? sref { get; set; }
    /// <summary>
    /// 
    /// </summary>
    public double rvalue { get; set; }
    /// <summary>
    /// 
    /// </summary>
    public string code { get; set; }
    /// <summary>
    /// 
    /// </summary>
    public string name { get; set; }
    /// <summary>
    /// 
    /// </summary>
    public string sname { get; set; }
    /// <summary>
    /// 
    /// </summary>
    public string ty { get; set; }
    /// <summary>
    /// 
    /// </summary>
    public string tynm { get; set; }
    /// <summary>
    /// 
    /// </summary>
    public string group { get; set; }
    /// <summary>
    /// 
    /// </summary>
    public string gname { get; set; }
    /// <summary>
    /// 
    /// </summary>
    public string group_parent { get; set; }
    /// <summary>
    /// 
    /// </summary>
    public string group_parent_name { get; set; }
    /// <summary>
    /// 
    /// </summary>
    public string factory { get; set; }
    /// <summary>
    /// 
    /// </summary>
    public string fname { get; set; }
    /// <summary>
    /// 
    /// </summary>
    public string process { get; set; }
    /// <summary>
    /// 
    /// </summary>
    public string position { get; set; }
    /// <summary>
    /// 
    /// </summary>
    public string info { get; set; }
    /// <summary>
    /// 
    /// </summary>
    public bool is_store { get; set; }
    /// <summary>
    /// 
    /// </summary>
    public string station_tag_content { get; set; }
    /// <summary>
    /// 
    /// </summary>
    public string relate_alarm_info { get; set; }
    /// <summary>
    /// 
    /// </summary>
    public string station_extend_info { get; set; }
    /// <summary>
    /// 
    /// </summary>
    public string handle_status { get; set; }
    /// <summary>
    /// 
    /// </summary>
    public string notifyInfo { get; set; }
    }

    public class Response
    {
        /// <summary>
        /// 
        /// </summary>
        public List<Rows> rows { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public int total { get; set; }
    }

    public class Root
    {
        /// <summary>
        /// 
        /// </summary>
        public int Code { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public string Message { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public Response Response { get; set; }
    }

}
